package design.onekey.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import design.onekey.mapper.UserRoleMapper;
import design.onekey.model.UserRole;
import design.onekey.service.IUserRoleService;
import org.springframework.stereotype.Service;

/**
* @Description: UserRole服务实现
* @author
* @date 2020-06-05 04:03:38
* @version V1.0
*/
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

   /**
    * @Title: getUserRole
    * @Description:根据用户id获取角色信息
    * @param userId
    * @return
    * @date 2020-06-05 05:23:50
    */
   @Override
   public UserRole getUserRole(Long userId) {

       return this.baseMapper.getUserRole(userId);
   }
}
